package com.gzxx.domain.po;

import com.baomidou.mybatisplus.annotation.TableName;
import com.gzxx.domain.base.BaseEntity;
import lombok.Builder;
import lombok.Getter;
import lombok.ToString;

import java.io.Serializable;


/**
 * SysDept
 *
 * @author chenjing
 * @date 2020-09-22 17:43:19
 */
@Getter
@ToString(callSuper = true)
@TableName("sys_dept")
public class SysDept extends BaseEntity implements Serializable {

	/**
	 * 部门名称
	 */
    private String name;

	/**
	 * 部门登记
	 */
    private Integer level;

	/**
	 * 上级ID
	 */
    private Long parentId;

	/**
	 * 部门状态
	 */
	private Integer status;


	@Builder
	public SysDept(Long id, Long createBy, Long updateBy, Integer revision, String idempotent,
				   String name, Integer level, Long parentId, Integer status) {
		super(id, createBy, updateBy, revision, idempotent);
		this.name = name;
		this.level = level;
		this.parentId = parentId;
		this.status = status;
	}
}
